package com.sdcs.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sdcs.server.daoimpl.ResourceDaoImpl;
import com.sdcs.server.model.Resource;

@Service
public class ResourceService {
	@Autowired
	private ResourceDaoImpl resourceDaoImpl;

	public List<Resource> getMyInfo(String uid) {
		return resourceDaoImpl.getMyInfo(uid);
	}

	public List<Resource> getAll() {
		return resourceDaoImpl.getAll();
	}

	public void save(Resource object) {
		resourceDaoImpl.save(object);
	}
	
	public void delete(String resource_id) {
		resourceDaoImpl.delete(resource_id);
	}
}
